@keyframes blink {
  0% {
    outline: solid 1px transparent;
  }
  100% {
    outline: solid 2px var(--accentColor);
  }
}

.dropdown {
  position: relative;

  .toggle {
    display: flex;
    transition: background 200ms ease-in-out;
    background: var(--secondaryColor);
    padding: 0.5em;
    border-radius: 10px;
    cursor: pointer;

    &:hover {
      background: var(--tertiaryColor);
    }

    &.visible-true {
      background: var(--tertiaryColor);
    }

    &.grabAttention {
      outline-offset: 2px;
      animation: blink 500ms 5 ease-in-out forwards alternate;
    }

    div {
      height: 10px;
      width: 10px;
      border-radius: 50%;
      background: var(--primaryTextColor);
      transition: transform 0.1s ease-in-out;

      &:not(:first-child) {
        margin-left: 5px;
      }
    }
  }

  .dropDownContent {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: var(--secondaryColor);
    position: absolute;
    top: calc(100% + 1em);
    right: 0;
    white-space: nowrap;
    z-index: 1;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    transition: opacity 150ms ease-in-out;
    box-shadow: -2px 2px 4px #1a1a1a;

    &.visible-true {
      pointer-events: unset;
      opacity: 1;
    }

    &.deleting-true {
      cursor: not-allowed;
      opacity: 0.5;
    }

    .action {
      display: flex;
      background: blue;
    }

    button {
      display: flex;
      gap: 2em;
      justify-content: space-between;
      font-family: "Roboto Bold", Arial;
      color: var(--primaryTextColor);
      background: var(--secondaryColor);
      display: flex;
      align-items: center;
      padding: 1em;
      width: 100%;

      &:hover {
        background: var(--tertiaryColor);
      }

      &.delete {
        background: var(--criticalLighterColor);

        &:hover {
          background: var(--criticalColor);
        }
      }

      &.rename,
      &.create {
        cursor: not-allowed;
      }
    }
  }
}
